package helper;

import play.Play;

/**
 * 全局配置变量.
 */
public class GlobalConfig {

    /**
     * 微信WAP网站、请求的主域名.
     */
    public final static String WEIXIN_BASE_DOMAIN = Play.configuration.getProperty("weixin.basedomain", "http://wx.ps321.net");

    // Weixin Session 配置信息
    public final static String WEIXIN_MP_SESSION_USER_KEY = "wxmp_user_id";
    public final static String WEIXIN_MP_WEIXIN_SESSION_USER_KEY = "wxmp_user_id_weixindata_";
    public final static String WEIXIN_MP_WEIXIN_SESSION_LINK_ID = "wxmp_user_id_link_id";

    // 百度配置信息
    public final static String BAIDU_API_AK = "9fb983ecd9b505f8fedcc9ab07c65e3e";

    // 阿里云 OSS 配置信息
    public final static String ALI_OSS_ENDPOINT = "http://oss-cn-hangzhou.aliyuncs.com";
    public final static String ALI_OSS_ACCESS_KEY_ID = "dgneRI3o7IJFXSRC";
    public final static String ALI_OSS_ACCESS_KEY_SECRET = "PT74UGnspNnXS3fSUGKjYGPfF42l4l";
    public final static String ALI_OSS_BUCKET_NAME = "buhaoba";
    public final static String ALI_OSS_DOMAIN = "http://cdn.buhaoba.com";
    public final static String ALI_IMG_OSS_DOMAIN = "http://buhaoba.img-cn-hangzhou.aliyuncs.com";

    // COOKIE 配置信息
    public final static String REF_CODE_COOKIE = "REF_CODE_COOKIE_YOYO";

    // CDN配置信息
    public final static String ASSETS_BASE_URL = "http://cdn.ulmsale.net";
    public final static String ASSETS_VERSION = "v1";


    // 微信公众号 配置信息
    public final static String WEIXIN_APP_ID = Play.configuration.getProperty("weixin.appId" , "wx6856f46e4e9cbab8");
    public final static String WEIXIN_APP_SECURET = Play.configuration.getProperty("weixin.appSecret" , "b31ce74c3d295357c58ef50933965bea");
    public final static String WEIXIN_TOKEN = Play.configuration.getProperty("weixin.token" , "youliang2015");
    public final static String WEIXIN_AES_KEY = Play.configuration.getProperty("weixin.aesKey" ,"s3VtPBoddHMdlof18cOyr8khsx1RtH58oDdZ3wkdMH9");
    public final static String WEIXIN_PAY_KEY = Play.configuration.getProperty("weixin.payKey" ,"asdfasdf009r0q90qw9r01wq09rtyeer");
    public final static String WEIXIN_MECHID = Play.configuration.getProperty("weixin.mchId" ,"1251164801");


    // Pingxx 支付配置信息
    public final static String PINGPP_APP_ID = Play.configuration.getProperty("pingxx.appId" , "app_8444CSavbbLCej9e");
    public final static String PINGPP_API_KEY = Play.configuration.getProperty("pingxx.secret" , "sk_live_KuXTeLC08CG45S4i1O5mvHiT");

    public final static String APPLICATION_BASE_DOMAIN = Play.configuration.getProperty("base.domain" , "liangfenwang.aliweixiao.com");


    // Ali大鱼配置信息
    public final static String ALI_DAYU_URL = "http://gw.api.taobao.com/router/rest";
    public final static String ALI_DAYU_APPID = "23298129";
    public final static String ALI_DAYU_SECRET = "5efdf6751f9c041f7feea2d25c87e837";



    public final static String ERP_APP_CODE ="siff";
    public final static String ERP_APP_SECRET = "a8931d6c100efc76z18b70ce510";


    // OpenSearch
    public final static String ALI_SEARCH_ACCESSKEY = "jLWd2Fvj1FlRHU7z";
    public final static String ALI_SEARCH_SECRET = "0ai9PYlIXuwPPx4AkVapCkuyL1YvCP";
    public final static String ALI_SEARCH_API = "http://opensearch-cn-beijing.aliyuncs.com";
    public final static String ALI_SEARCH_APP_NAME = "liangfenwang";
    public final static String ALI_SEARCH_TEMP = "products";


    // ================================  微信企业号 ================================

    public final static String WEIXIN_CP_SESSION_USER_KEY = "qywx_uid";

    /**
     * 企业号配置.
     */
    public final static String WXCP_CORPID = Play.configuration.getProperty("wxcp.corp_id", "wx50380c905a11d9be");
    public final static String WXCP_SECRET = Play.configuration.getProperty("wxcp.secret",
            "9buGBoarBNUUcn3SwBgd7LWV2R9joUjoGGijonSqNf2lEbjRLwwZu4UnlhPW-1dh");

    // 物业管理 应用
    public final static Integer WXCP_WY_AGENT_ID = Integer.parseInt(Play.configuration.getProperty("wxcp.wy.agent_id", "7"));
    public final static String WXCP_WY_TOKEN    = Play.configuration.getProperty("wxcp.wy.token", "2KPaFRczufTXXuJSIygXo8P");
    public final static String WXCP_WY_AESKEY   = Play.configuration.getProperty("wxcp.wy.aesKey",
            "8Bi8lz5il3uTIuBgKcLtAW4IA7zcNJDvnP2LlFli9Ei");

}
